#include "No7pch.h"
#define _2D
#define _3D
#include "Entity.h"

#include <vector>

nmspc::Entity2::Entity2() :
	MathTool::Position3D(std::vector<std::vector<double>>({ {0.0l,0.0l,1.0l} }))
{
}

nmspc::Entity2::Entity2(const double& x, const double& y) :
	MathTool::Position3D(std::vector<std::vector<double>>({ {x,y,1.0l} }))
{
}

double nmspc::Entity2::getX() const
{
	return this->data[0][0];
}

double nmspc::Entity2::getY() const
{
	return this->data[0][1];
}

void nmspc::Entity2::setPosition(const double& x, const double& y)
{
	this->data[0][0] = x;
	this->data[0][1] = y;
}

void nmspc::Entity2::setX(const double& x)
{
	this->data[0][0] = x;
}

void nmspc::Entity2::setY(const double& y)
{
	this->data[0][1] = y;
}

double nmspc::Entity3::getX()
{
	return this->position[0][0];
}

double nmspc::Entity3::getY()
{
	return this->position[0][1];
}

double nmspc::Entity3::getZ()
{
	return this->position[0][2];
}
